#include <iostream>
#include "command.h"
#include "invoker.h"

Invoker::Invoker(Command *cmd)
{
    cmd_ = cmd;
}

Invoker::~Invoker()
{
    delete cmd_;
}

void Invoker::Invoke()
{
    cmd_->Execute();
}


